import request from '@/utils/request'

// 查询通知信息框列表
export function listWbNoticeMessage(query) {
  return request({
    url: '/WbNoticeMessage/WbNoticeMessage/list',
    method: 'get',
    params: query
  })
}

// 查询通知信息框详细
export function getWbNoticeMessage(id) {
  return request({
    url: '/WbNoticeMessage/WbNoticeMessage/' + id,
    method: 'get'
  })
}

// 新增通知信息框
export function addWbNoticeMessage(data) {
  return request({
    url: '/WbNoticeMessage/WbNoticeMessage',
    method: 'post',
    data: data
  })
}

// 修改通知信息框
export function updateWbNoticeMessage(data) {
  return request({
    url: '/WbNoticeMessage/WbNoticeMessage',
    method: 'put',
    data: data
  })
}

// 删除通知信息框
export function delWbNoticeMessage(id) {
  return request({
    url: '/WbNoticeMessage/WbNoticeMessage/' + id,
    method: 'delete'
  })
}

// 修改读取状态
export function updateReadStatus(id) {
  return request({
    url: '/WbNoticeMessage/WbNoticeMessage/updateReadStatus/' + id,
    method: 'put'
  })
}
